﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GioHang.aspx.cs" Inherits="TemplateH4.GioHang"  MasterPageFile="~/Site1.Master"%>



<%@ Register src="UserControl/MenuLoaiSP.ascx" tagname="MenuLoaiSP" tagprefix="uc3" %>


<%@ Register src="UserControl/TimKiemSanPham.ascx" tagname="TimKiemSanPham" tagprefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title></title>
    <link href="css/SanPham.css" rel="stylesheet" type="text/css" />
    <style type="text/css">


    .producttitlelink
    {
        color: #1134D7;
        font-size:larger;
	    text-decoration: none;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>

<div id="left-column">
    <div id="nav">
        <ul>
            <uc3:MenuLoaiSP ID="MenuLoaiSP1" runat="server" />
            </ul>
            
            <div style="margin-top:50px" >
                <asp:ScriptManager ID="ScriptManager2" runat="server">
                </asp:ScriptManager>
         
                <uc1:TimKiemSanPham ID="TimKiemSanPham1" runat="server" />
           
             </div>
       
        
    </div>
        
     </div>
     

 <div id="right-column" style="height:auto; width:800px">

<!-- box begin -->
		<div class="box" >
			<div class="left-top-corner png"><div class="right-top-corner png"><div class="border-top png"></div></div></div>
			<div class="border-left png">
				<div class="border-right png">
					<div class="inside png" style="padding-left:10px; height:auto">

			    <h2>  Các sản phẩm có trong giỏ hàng.
                </h2>

         <asp:Panel ID="pnThongBao" runat="server" Width="650px">
             <asp:Label ID="lbThongBao1" runat="server" Text="Label" Font-Bold="True" 
                 Font-Size="Medium" ></asp:Label>
             <asp:HyperLink ID="hl2SanPham" runat="server" Font-Size="Medium" 
                 Font-Underline="True"  NavigateUrl="~/SanPham.aspx">HyperLink</asp:HyperLink>
             <asp:Label ID="lbThongBao2" runat="server" Font-Bold="True" Font-Size="Medium" 
                  Text="Label"></asp:Label>
         </asp:Panel>

        <asp:UpdatePanel ID="UpdatePanelGrvSP" runat="server" >
        <ContentTemplate>
        <br />
        <br />
        <div style="margin-left:20px">
        <asp:GridView ID="grvGioHang" runat="server" CellPadding="5" 
            ForeColor="#333333" AutoGenerateColumns="False" 
                onrowdatabound="grvGioHang_RowDataBound" Width="731px" 
                BorderColor="#99CCFF" BorderStyle="Solid" BorderWidth="1px">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox EnableViewState="true" ID="CheckAll" runat="server" AutoPostBack="true" 
                            oncheckedchanged="CheckAll_CheckedChanged" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox EnableViewState="true" ID="CheckProduct" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên Sản Phẩm">
                    <ItemTemplate>
                    
                        <asp:HyperLink ID="HyperLink23" runat="server" CssClass="producttitlelink" 
                            NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                            Text='<%# Eval("TenSanPham") %>'></asp:HyperLink>
                      
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Phái">
                    <ItemTemplate>
                    <center>
                        <asp:Label ID="lbPhai" runat="server" 
                            Text='<%# Convert.ToBoolean(Eval("Phai"))==true?"Nam":"Nu" %>'></asp:Label>
                    </center>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nhà Sản Xuất">
                    <ItemTemplate>
                    <center>
                        <asp:HyperLink ID="HyperLink24" runat="server" 
                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>' 
                            CssClass="producttitlelink"></asp:HyperLink>
                    </center>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Khuyến Mãi">
                    <ItemTemplate>
                        <asp:Label ID="lbKM" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Hình SP">
                    <ItemTemplate>
                    <center>
                    <div style="width:75px; height:75px;padding:7px">
                        <asp:Image ID="imgSP" runat="server" 
                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' Height="60px" 
                            Width="60px" />
                     </div>
                     </center>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Size">
                    <ItemTemplate>
                        <asp:Label ID="lbSize" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="SL">
                    <ItemTemplate>
                        <asp:Label ID="lbSL" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="Đơn Giá" DataField="DonGia" 
                    DataFormatString="{0:0,0} VND" >
                <ItemStyle Font-Bold="False" ForeColor="Red" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Thành Tiền">
                    <ItemTemplate>
                        <asp:Label ID="lbThanhTien" runat="server" Font-Bold="True" ForeColor="Red" 
                            Text="Label"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
                Height="35px" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
       
        <div align="right" style="width: 700px; margin-top:10px">
           <div style="float:right">
               <asp:Label ID="Label1" runat="server" Text="Tổng Cộng:"></asp:Label>
               <asp:Label ID="lbTongCong" runat="server" Font-Bold="True" ForeColor="Red" 
                            Text="Label"></asp:Label>
            </div>     
        </div>
       

            <br />
            <asp:Panel ID="pnButton" runat="server" >
            <div align="right" style="width: 724px; margin-top:20px">
                <asp:Button ID="btnXoa" runat="server" Height="26px" onclick="btnXoa_Click" 
                    Text="Xóa" Width="84px" />
                &nbsp;&nbsp;
                <asp:Button ID="btnThanhToan" runat="server" onclick="btnThanhToan_Click" 
                    Text="Thanh Toán" Height="26px" />
             </div>
            </asp:Panel>
       </div>
       </ContentTemplate>
    </asp:UpdatePanel>
    
			</div>
		</div>
		<div class="left-bot-corner png"><div class="right-bot-corner png"><div class="border-bot png"></div></div></div>
	</div>
<!-- box end -->
    
    
    
    </div>
 </div>
</asp:Content>
